package com.xjnt.base.support.admin.controller;

import com.jfinal.aop.Before;
import com.xjnt.base.support.admin.entity.Dictionary;
import com.xjnt.base.support.admin.service.DictionaryService;
import com.xjnt.base.support.admin.validator.DictionaryValidator;
import com.xjnt.frameworks.annotation.AutoInject;
import com.xjnt.frameworks.annotation.Router;
import com.xjnt.frameworks.core.CRUDController;

@Before(DictionaryValidator.class)
@Router(name="/system/admin/dictionary", view="/admin/dictionary")
public class DictionaryController extends CRUDController<Dictionary, DictionaryService>{

	@AutoInject
	private DictionaryService dictionaryService;
	
	@Override
	protected String getBizName() {
		return "字典数据";
	}
	
	@Override
	protected Class<Dictionary> getClazz() {
		return Dictionary.class;
	}

	@Override
	protected DictionaryService getService() {
		return dictionaryService;
	}
}
